home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / Timer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  1.1 KB  |  62 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Sunday, September 15, 1991 at 9:19 PM
  5.  Timer.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1985-1991
  10.   All rights reserved
  11.  
  12. ************************************************************/
  13.  
  14.  
  15. #ifndef __TIMER__
  16. #define __TIMER__
  17.  
  18. #ifndef __TYPES__
  19. #include <Types.h>
  20. #endif
  21.  
  22. #ifndef __OSUTILS__
  23. #include <OSUtils.h>
  24. #endif
  25.  
  26.  
  27. typedef pascal void (*TimerProcPtr)(void);
  28.  
  29. struct TMTask {
  30.  QElemPtr qLink;
  31.  short qType;
  32.  TimerProcPtr tmAddr;
  33.  long tmCount;
  34.  long tmWakeUp;
  35.  long tmReserved;
  36. };
  37.  
  38. typedef struct TMTask TMTask;
  39. typedef TMTask *TMTaskPtr;
  40.  
  41.  
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. #pragma parameter InsTime(__A0)
  46. pascal void InsTime(QElemPtr tmTaskPtr)
  47.  = 0xA058; 
  48. #pragma parameter InsXTime(__A0)
  49. pascal void InsXTime(QElemPtr tmTaskPtr)
  50.  = 0xA458; 
  51. #pragma parameter PrimeTime(__A0,__D0)
  52. pascal void PrimeTime(QElemPtr tmTaskPtr,long count)
  53.  = 0xA05A; 
  54. #pragma parameter RmvTime(__A0)
  55. pascal void RmvTime(QElemPtr tmTaskPtr)
  56.  = 0xA059; 
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60.  
  61. #endif
  62.